<?php

namespace app\admin\controller\promotion;

use ShidianUtil\Thinkphp\Response\ApiResponse;
use think\APP;
use think\facade\Config;
use think\Request as Request;

/**
 * 渠道数据统计
 * Class PromotionFields
 * @package app\admin\controller\promotion
 */
class PromotionFields
{
    // 请求参数
    private Request $request;

    public function __construct(Request $request)
    {
        $this->request = $request;
    }

    /**
     * @return ApiResponse
     * @url /promotion/promotion_fields/index
     */
    public function index()
    {

        $data = Config::get('promotion', []);

        return ApiResponse::success($data);
    }
}
